<?php
 require_once("/../../../includes/controller/initialize.php"); 
if (!$session->is_logged_in()) { redirect_to("/public/index.php"); }

if(isset($_GET['id'])){
    $connid = $_GET['id'];
    $userid = $_SESSION['user_id'];
    $stats_controller->setMotion($userid,$connid);


}
  
?>
<!Doctype html>

<html>
<head>
<title>Flowershop-index</title>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
 <link href="../stylesheet/style.css" type="text/css" rel="stylesheet"/>
  <script src="http://code.jquery.com/jquery-latest.js"></script>






    


</head>

    <body>
                

    <!-- Define Header -->
        <header>

             <?php include('/templates/header.php');?>
            
        
        </header>
    <!-- End Header -->
    <!-- Define Navigation/Menu -->

        <nav>
   
             <?php include('/templates/nav.php');?>
    
        </nav>
    <!-- End Navigation -->
    <!-- Main content area -->
    <section>
        <?php if (!isset($_GET['id'])){

        }else{
?>
        <?php
        $getid = $_GET['id'];
        $findbyid = Company_Product::Find_by_id($getid);
        
         if($findbyid->company_id!=0){   include('/templates/showcompany.php');}
         if($findbyid->product_id!=0){ include('/templates/showproduct.php');}
        ?>
        <?php 
        include('/templates/rate.php');
        //include('/templates/showrating.php');  
        include('/templates/commentonly.php');

        }?>
        
            <div id="ratebar">
                
            </div>
            
            <div id="viewcake">
                
            </div>
            
            <div id="graphviewst">
                
                
            </div>
        
        <div id="commentsshow"></div>
        <div id="commentsshow1"></div>
        <div id="commentsshow2"></div>
        <div id="jaujau">kuk</div>
        
        
            
    </section>
    <!-- End of Main content area -->

    

    <!-- Sidebar -->
        <aside>
        </aside>
    <!-- End Sidebar -->
    <!-- Footer -->
    <footer>
  

 <?php include('/templates/footer.php');?>

    </footer>
     
          
    <!-- End of Footer -->
        
        <!-- End of Total--->
   </body>
 </html>
